class DocMain < ActiveRecord::Base
  attr_accessible :cateid, :content, :key, :title, :userid, :wordcount, :shareid
  belongs_to :user, :class_name => 'User', :foreign_key => 'userid'
  belongs_to :cates, :class_name => 'DocCategory', :foreign_key => 'cateid'
end
